Skip to main content

Get Processes

AutomatR.DefaultActivities.General.GetProcesses

The "Get Processes" activity in AutomatR, categorized under Application, retrieves the list of currently running Windows processes on the local machine. This activity simplifies the process of obtaining information about active processes, enhancing automation workflows.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Processes" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
IDSpecifies the process ID to fetch details for a specific process. Integer variables containing the process ID.
NameSpecifies the process name to fetch details for a specific process. String variables containing the process name.
Output
ResultOutputs an array of processes currently running on the local machine. Variables of type Process[] to store the list of processes.

How to use:

  1. Drag and drop the "Get Processes" activity onto the workflow.
  2. Optionally, configure the delay, process name, or process ID based on your requirements.
  3. Execute the workflow to retrieve information about currently running processes.

Example: Consider an example where the "Get Processes" activity is used to obtain details about all processes running on the local machine:

Get Processes:
Result: processesArray

In this example, the activity retrieves information about all processes running on the local machine and stores the result in the processesArray variable for further processing in the workflow.